if (USE_PSI3)

  set(formic_dir_for_this_test ${FORMIC_BINARY_DIR}/Testing/tests/h4_sto3g_simple)

  file(MAKE_DIRECTORY ${formic_dir_for_this_test})

  configure_file(input.dat ${formic_dir_for_this_test}/input.dat COPYONLY)
  configure_file(input.txt ${formic_dir_for_this_test}/input.txt COPYONLY)

  add_test(NAME h4_sto3g_simple_psi3
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND ${PSI3_EXE} input.dat
          )

  add_test(NAME h4_sto3g_simple_fqmc
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND fqmc input.txt output.txt
          )

  add_test(NAME h4_sto3g_simple_check_results
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND test_checker -compare_float "psi3 scf energy"
                                               output.dat
                                               "SCF total energy   ="
                                               -1
                                               -2.131756218082
                                               1.0e-9
                                -compare_float "fqmc starting energy"
                                               output.txt
                                               "mean ="
                                               0
                                               -2.180795569611
                                               1.0e-9
                                -compare_float "fqmc updated energy"
                                               output.txt
                                               "mean ="
                                               -1
                                               -2.201236990403
                                               1.0e-9
          )

  unset(formic_dir_for_this_test)

endif (USE_PSI3)
